package whf.framework.ext.entity;

import whf.framework.entity.TreeNode;

/**
 * @author wanghaifeng
 * 
 */
public class Category extends whf.framework.entity.AbstractEntity implements TreeNode<Category> {

	private static final long serialVersionUID = 0;

	private Category parent;
	
	/**
	 * 绑定的枚举类型
	 * @property String:enumClassName
	 */
	private String enumClassName;
	
	/**
	 * 扩展的查询字符串用以扩充字典用
	 * 1、排训上首先搜索对应字典的字典项÷
	 * 2、使用查询字符串搜索
	 * 查询字符串必须满足select x as code, y as name from xxx格式或者
	 * from xxx的格式，后一种情况下，获取的必定是IBaseBO对象，使用code和name分别代表
	 * 字典代码和字典名称
	 * @property String:queryString
	 */
	private String queryString;

	private boolean leaf;
	
	public void setParent(Category parent) {
		this.parent = parent;
	}

	public Category getParent() {
		return this.parent;
	}

	/**
	 * @return Returns the leaf.
	 */
	public boolean isLeaf() {
		return leaf;
	}

	/**
	 * @param leaf The leaf to set.
	 */
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	/**
	 * @return Returns the enumClassName.
	 */
	public String getEnumClassName() {
		return enumClassName;
	}

	/**
	 * @param enumClassName The enumClassName to set.
	 */
	public void setEnumClassName(String enumClassName) {
		this.enumClassName = enumClassName;
	}

	/**
	 * @return Returns the queryString.
	 */
	public String getQueryString() {
		return queryString;
	}

	/**
	 * @param queryString The queryString to set.
	 */
	public void setQueryString(String queryString) {
		this.queryString = queryString;
	}

}